-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verify the NooBaa DB PostreSQL version at upgrade #10440
base: master
Are you sure you want to change the base?
Verify the NooBaa DB PostreSQL version at upgrade #10440
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR validation on existing cluster
Cluster Name: shirshfe-417ibm29
Cluster Configuration:
PR Test Suite:
PR Test Path: tests/libtest/test_nb_db_psql_version.py
Additional Test Params:
OCP VERSION: 4.17
OCS VERSION: 4.17
tested against branch: master
32ad045
to
44d834d
Compare
a2277b0
to
f426583
Compare
Signed-off-by: Sagi Hirshfeld <[email protected]>
Signed-off-by: Sagi Hirshfeld <[email protected]>
f426583
to
44f3048
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sagihirshfeld, udaysk23 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Noticeable changes made:
get_nb_db_psql_version_from_image
: extract the version from the image name in the noobaa-db-pg statefulset. The equivalent of:query_nb_db_psql_version
: Extract the version from the DB itself. The equivalent of:get_expected_nb_db_psql_version
: Extract the PostreSQL version that's listed at the NooBaa CR, which by the noobaa-db reocvery KCS, seems to set the expectation. This util function is the equivalent of the following command:Added the
verify_nb_db_psql_version
helper function, and added it to the verification inrun_ocs_upgrade
.Added a libtest to test
verify_nb_db_psql_version